<?php
//
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Requests;

class IndexController extends Controller
{
    //邮件测试
    public function mail()
    {
        $email ="linzhiquan78034@126.com"; //收件人地址
        $name ="zhangsan" ;
        $uid = "100";
        $code = "<b>你好！小丽</b><ul><li>aaaaaa</li><li style='color:red;'>bbbbbbbb</li></ul>" ;
        $data = ['email'=>$email, 'name'=>$name, 'uid'=>$uid, 'activationcode'=>$code];
        \Mail::send('activemail', $data, function($message) use($data)
        {
    		$message->to($data['email'], $data['name'])->subject('欢迎注册我们的网站，请激活您的账号！');
        });
    }
}